cc.Class({
    extends: cc.Component,

    properties: {
        Player:{
            default:null,
            type:cc.Node
        },
        Bacteria: null
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this.Bacteria = this.Player.getComponent("Bacteria");
    },

    start () {

    },

    ChangeColorNext:function (Color){
        var ColorN = Color +1;
        if (ColorN > this.Bacteria.Option.Color.length / 2 - 1) {
            ColorN = 0;
        }
        this.node.color = this.Bacteria.Option.Color[ColorN + this.Bacteria.Option.Color.length / 2];
    },

    update(dt) {
    },
});
